public class NoSuchBeanDefinitionException extends BeansException
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
beanName
Name of the missing bean
|
private java.lang.Class |
beanType
Required bean type
|
Constructor and Description |
---|
NoSuchBeanDefinitionException(java.lang.Class type)
Create a new NoSuchBeanDefinitionException.
|
NoSuchBeanDefinitionException(java.lang.Class type,
java.lang.String message)
Create a new NoSuchBeanDefinitionException.
|
NoSuchBeanDefinitionException(java.lang.Class type,
java.lang.String dependencyDescription,
java.lang.String message)
Create a new NoSuchBeanDefinitionException.
|
NoSuchBeanDefinitionException(java.lang.String name)
Create a new NoSuchBeanDefinitionException.
|
NoSuchBeanDefinitionException(java.lang.String name,
java.lang.String message)
Create a new NoSuchBeanDefinitionException.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBeanName()
Return the name of the missing bean,
if it was a lookup by name that failed.
|
java.lang.Class |
getBeanType()
Return the required type of bean,
if it was a lookup by type that failed.
|
equals, hashCode
contains, getMessage, getMostSpecificCause, getRootCause
private java.lang.String beanName
private java.lang.Class beanType
public NoSuchBeanDefinitionException(java.lang.String name)
name
- the name of the missing beanpublic NoSuchBeanDefinitionException(java.lang.String name, java.lang.String message)
name
- the name of the missing beanmessage
- detailed message describing the problempublic NoSuchBeanDefinitionException(java.lang.Class type)
type
- required type of beanpublic NoSuchBeanDefinitionException(java.lang.Class type, java.lang.String message)
type
- required type of beanmessage
- detailed message describing the problempublic NoSuchBeanDefinitionException(java.lang.Class type, java.lang.String dependencyDescription, java.lang.String message)
type
- required type of beandependencyDescription
- a description of the originating dependencymessage
- detailed message describing the problem